﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace Himp.TaskScheduling
{
    /// <summary>
    /// 化验任务
    /// </summary>
    public class SampleTestTask : Entity<long>
    {
        /// <summary>
        /// 制样码
        /// </summary>
        public string SampleCode { get; set; }

        /// <summary>
        /// 化验码
        /// </summary>
        public string TestCode { get; set; }

        /// <summary>
        /// 瓶底码
        /// </summary>
        public string BottomCode { get; set; }

        /// <summary>
        /// 煤样类型
        /// </summary>
        public string SampleType { get; set; }

        /// <summary>
        /// 测定次数
        /// </summary>
        public int TestCnt { get; set; }

        /// <summary>
        /// 任务下达时间
        /// </summary>
        public DateTime TaskAssgnTime { get; set; }

        /// <summary>
        /// 任务接收时间
        /// </summary>
        public DateTime? TaskRecptTime { get; set; }

        /// <summary>
        /// 最后操作时间
        /// </summary>
        public DateTime LastOperTime { get; set; }

        /// <summary>
        /// 化验项目
        /// </summary>
        public string TestItems { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public string ExecStas { get; set; }

        /// <summary>
        /// 手工取样标识
        /// </summary>
        public int ManualFlag { get; set; }

        public SampleTestTask()
        { }

        public SampleTestTask(string sampleCode, string testCode, string bottomCode
            , string sampletype, int testCnt, string testItems ,int manualFlag)
        {
            SampleCode = sampleCode;
            TestCode = testCode;
            BottomCode = bottomCode;
            SampleType = sampletype;
            TestCnt = testCnt;
            TestItems = testItems;
            TaskAssgnTime = DateTime.Now;
            LastOperTime = DateTime.Now;
            ExecStas = "就绪";
            ManualFlag = manualFlag;
        }
    }
}
